package com.controller.qsl;

import com.dao.qsl.TongJi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
public class GetTongJiController {

      @Autowired
      private TongJi t;

      /**
       * 获取业主name
       */

      @RequestMapping("/QslPage/getyzname")
      @ResponseBody
      public List<String>  getname(){

	  return t.getyzinfo();
      }

      /**
       * 物业
       * 查看业主物业费报表
       * @param yzname
       * @return
       */
      @RequestMapping("/QslPage/chaxunbbwyf")
      @ResponseBody
      public List<String>  wyf(String yzname){

            return t.ckjf(yzname);
      }

      /**
       * 物业
       * 查看业主电费报表
       * @param yzname
       * @return
       */
      @RequestMapping("/QslPage/chaxunbbdf")
      @ResponseBody
      public List<String>  df(String yzname){

            return t.ckdf(yzname);
      }

      /**
       * 物业
       * 查看业主水费报表
       * @param yzname
       * @return
       */
      @RequestMapping("/QslPage/chaxunbbsf")
      @ResponseBody
      public List<String>  sf(String yzname){

            return t.cksf(yzname);
      }

      /**
       * 业主
       * 查看物业费报表
       * @param
       * @return
       */
      @RequestMapping("/QslPage/chaxunbbwyfyz")
      @ResponseBody
      public List<String>  yzwyf(HttpServletRequest request){


            return  t.yzckwyf(request);
      }

      /**
       * 业主
       * 查看电费报表
       * @param
       * @return
       */
      @RequestMapping("/QslPage/chaxunbbdfyz")
      @ResponseBody
      public List<String>  yzdf(HttpServletRequest request ){


            return  t.yzckdf(request);
      }

      /**
       * 业主
       * 查看水费报表
       * @param
       * @return
       */
      @RequestMapping("/QslPage/chaxunbbsfyz")
      @ResponseBody
      public List<String>  yzsf(HttpServletRequest request){


            return  t.yzcksf(request);
      }

}
